Optimal. Leaf size=156 \[ \frac{\text{sech}(e+f x) \sqrt{a+b \sinh ^2(e+f x)} \text{EllipticF}\left (\tan ^{-1}(\sinh (e+f x)),1-\frac{b}{a}\right )}{f (a-b) \sqrt{\frac{\text{sech}^2(e+f x) \left (a+b \sinh ^2(e+f x)\right )}{a}}}-\frac{\text{sech}(e+f x) \sqrt{a+b \sinh ^2(e+f x)} E\left (\tan ^{-1}(\sinh (e+f x))|1-\frac{b}{a}\right )}{f (a-b) \sqrt{\frac{\text{sech}^2(e+f x) \left (a+b \sinh ^2(e+f x)\right )}{a}}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.181255, antiderivative size = 156, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 6, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.24, Rules used = {3196, 471, 422, 418, 492, 411} \[ \frac{\text{sech}(e+f x) \sqrt{a+b \sinh ^2(e+f x)} F\left (\tan ^{-1}(\sinh (e+f x))|1-\frac{b}{a}\right )}{f (a-b) \sqrt{\frac{\text{sech}^2(e+f x) \left (a+b \sinh ^2(e+f x)\right )}{a}}}-\frac{\text{sech}(e+f x) \sqrt{a+b \sinh ^2(e+f x)} E\left (\tan ^{-1}(\sinh (e+f x))|1-\frac{b}{a}\right )}{f (a-b) \sqrt{\frac{\text{sech}^2(e+f x) \left (a+b \sinh ^2(e+f x)\right )}{a}}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3196
Rule 471
Rule 422
Rule 418
Rule 492
Rule 411
Rubi steps
\begin{align*} \int \frac{\tanh ^2(e+f x)}{\sqrt{a+b \sinh ^2(e+f x)}} \, dx &=\frac{\left (\sqrt{\cosh ^2(e+f x)} \text{sech}(e+f x)\right ) \operatorname{Subst}\left (\int \frac{x^2}{\left (1+x^2\right )^{3/2} \sqrt{a+b x^2}} \, dx,x,\sinh (e+f x)\right )}{f}\\ &=-\frac{\sqrt{a+b \sinh ^2(e+f x)} \tanh (e+f x)}{(a-b) f}-\frac{\left (\sqrt{\cosh ^2(e+f x)} \text{sech}(e+f x)\right ) \operatorname{Subst}\left (\int \frac{\sqrt{a+b x^2}}{\sqrt{1+x^2}} \, dx,x,\sinh (e+f x)\right )}{(-a+b) f}\\ &=-\frac{\sqrt{a+b \sinh ^2(e+f x)} \tanh (e+f x)}{(a-b) f}-\frac{\left (a \sqrt{\cosh ^2(e+f x)} \text{sech}(e+f x)\right ) \operatorname{Subst}\left (\int \frac{1}{\sqrt{1+x^2} \sqrt{a+b x^2}} \, dx,x,\sinh (e+f x)\right )}{(-a+b) f}-\frac{\left (b \sqrt{\cosh ^2(e+f x)} \text{sech}(e+f x)\right ) \operatorname{Subst}\left (\int \frac{x^2}{\sqrt{1+x^2} \sqrt{a+b x^2}} \, dx,x,\sinh (e+f x)\right )}{(-a+b) f}\\ &=\frac{F\left (\tan ^{-1}(\sinh (e+f x))|1-\frac{b}{a}\right ) \text{sech}(e+f x) \sqrt{a+b \sinh ^2(e+f x)}}{(a-b) f \sqrt{\frac{\text{sech}^2(e+f x) \left (a+b \sinh ^2(e+f x)\right )}{a}}}+\frac{\left (\sqrt{\cosh ^2(e+f x)} \text{sech}(e+f x)\right ) \operatorname{Subst}\left (\int \frac{\sqrt{a+b x^2}}{\left (1+x^2\right )^{3/2}} \, dx,x,\sinh (e+f x)\right )}{(-a+b) f}\\ &=-\frac{E\left (\tan ^{-1}(\sinh (e+f x))|1-\frac{b}{a}\right ) \text{sech}(e+f x) \sqrt{a+b \sinh ^2(e+f x)}}{(a-b) f \sqrt{\frac{\text{sech}^2(e+f x) \left (a+b \sinh ^2(e+f x)\right )}{a}}}+\frac{F\left (\tan ^{-1}(\sinh (e+f x))|1-\frac{b}{a}\right ) \text{sech}(e+f x) \sqrt{a+b \sinh ^2(e+f x)}}{(a-b) f \sqrt{\frac{\text{sech}^2(e+f x) \left (a+b \sinh ^2(e+f x)\right )}{a}}}\\ \end{align*}
Mathematica [C] time = 0.382078, size = 109, normalized size = 0.7 \[ \frac{\sqrt{2} \tanh (e+f x) (-2 a-b \cosh (2 (e+f x))+b)-2 i a \sqrt{\frac{2 a+b \cosh (2 (e+f x))-b}{a}} E\left (i (e+f x)\left |\frac{b}{a}\right .\right )}{2 f (a-b) \sqrt{2 a+b \cosh (2 (e+f x))-b}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.161, size = 239, normalized size = 1.5 \begin{align*}{\frac{1}{ \left ( a-b \right ) \cosh \left ( fx+e \right ) f} \left ( -\sqrt{-{\frac{b}{a}}}b \left ( \sinh \left ( fx+e \right ) \right ) ^{3}+a\sqrt{{\frac{a+b \left ( \sinh \left ( fx+e \right ) \right ) ^{2}}{a}}}\sqrt{ \left ( \cosh \left ( fx+e \right ) \right ) ^{2}}{\it EllipticF} \left ( \sinh \left ( fx+e \right ) \sqrt{-{\frac{b}{a}}},\sqrt{{\frac{a}{b}}} \right ) -b\sqrt{{\frac{a+b \left ( \sinh \left ( fx+e \right ) \right ) ^{2}}{a}}}\sqrt{ \left ( \cosh \left ( fx+e \right ) \right ) ^{2}}{\it EllipticF} \left ( \sinh \left ( fx+e \right ) \sqrt{-{\frac{b}{a}}},\sqrt{{\frac{a}{b}}} \right ) +b\sqrt{{\frac{a+b \left ( \sinh \left ( fx+e \right ) \right ) ^{2}}{a}}}\sqrt{ \left ( \cosh \left ( fx+e \right ) \right ) ^{2}}{\it EllipticE} \left ( \sinh \left ( fx+e \right ) \sqrt{-{\frac{b}{a}}},\sqrt{{\frac{a}{b}}} \right ) -\sqrt{-{\frac{b}{a}}}a\sinh \left ( fx+e \right ) \right ){\frac{1}{\sqrt{-{\frac{b}{a}}}}}{\frac{1}{\sqrt{a+b \left ( \sinh \left ( fx+e \right ) \right ) ^{2}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\tanh \left (f x + e\right )^{2}}{\sqrt{b \sinh \left (f x + e\right )^{2} + a}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{\tanh \left (f x + e\right )^{2}}{\sqrt{b \sinh \left (f x + e\right )^{2} + a}}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\tanh ^{2}{\left (e + f x \right )}}{\sqrt{a + b \sinh ^{2}{\left (e + f x \right )}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\tanh \left (f x + e\right )^{2}}{\sqrt{b \sinh \left (f x + e\right )^{2} + a}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]